home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 June (IDG) / Macworld_June_2000.iso / Shareware World / Utilities / Databasing / Troi-File-Plug-in2.0 / Disable.fp3 (.txt) < prev    next >
Encoding:
FileMaker Pro Database  |  2000-03-31  |  40.0 KB  |  165 lines  |  [FMP3/FMP3]

  1.  Copyright 1984-1998 FileMaker, Inc. 
  2. HBAM2016AUG95
  3. Pro 3.0
  4. HBAM3016AUG95@
  5. kZo{s
  6. o{kZg9^
  7. g9kZs
  8. o{kZg9c
  9. g9kZo{s
  10. o{kZg9g9
  11. g9kZkZo{s
  12. o{kZkZ
  13. kZkZo{o{s
  14. o{o{s
  15. o{kZc
  16. g9kZo{w
  17. kZg9^
  18. g9o{s
  19. o{g9c
  20. 1st Quarter
  21. 2nd Quarter
  22. 3rd Quarter
  23. 4th Quarter
  24. 3/31/00
  25. CONTENTS
  26. _CSTATUS
  27. _GERRORCODE
  28. _GPASSWORD
  29. contentsB
  30. _gPasswordB
  31. _gErrorCodeB
  32. _cStatusB
  33. |("TrFile-Control"
  34.  "CurrentEnabledStatus")
  35. TrFile-Control
  36. CurrentEnabledStatus|
  37. $$-416
  38. Control
  39. ConvertFromFM
  40. ControlB
  41. ConvertFromFMB
  42. E$Disable/Enable the
  43. Plug-in FunctionsFCThis file shows how to disable and enable the plug-in for security.G
  44.  2000 Troi Automatisering  j
  45. Note: The functions are disabled only for this computer and only while FileMaker application is running. The next time FileMaker is started again the functions are enabled again, so you might want to add the disabling function to a startup script.k
  46. Disable All Functionsm
  47. Get file Contents
  48. B;First specify a password of at least 3 characters (max 60).
  49. password
  50. error code
  51. _cStatus
  52. H^Here you can see the CurrentEnabledStatus, this function returns 0 if disabled , 1 if enabled.
  53. I= With this button you can disable all File Plug-in Functions.
  54. After you have disabled the functions the plug-in will do nothing and return an error code $$-4220. Try it with the sample function in this button.
  55. Enable All Functions
  56. N@ With this button you can (re)enable all File Plug-in Functions.
  57. Clear
  58. Close Demo File
  59. workB
  60. abcdefghijklmnopqrstuvwxyz{|}~
  61. $$-4220
  62. Control: Disable All Functions
  63. Control: Enable All Functions
  64. "Test Function: Get a File Contents
  65. Control: Check if Disabled
  66. -------------
  67.     open file
  68. A"Test Function: Get a File Contents
  69. ConverTextFromFMFhThis file shows how get text from a file correctly converted to and from the internal
  70. FileMaker format.
  71.  2000 Troi Automatisering  `
  72. contentsi
  73. _gErrorCodej
  74. Note: These 2 function work transparant on both Windows and Mac OS. However on Mac you no conversion is done. Test this on Windows.k
  75. 2- Put it in a text File m
  76. 1- Convert From FM format
  77. Variant 1: Put some text with some higher ASCII characters in the field contents. Then convert the text to FileMaker format by clicking the 1st button. With the 2nd button the contents is written to file.
  78. Convert and Write to a file
  79. ;ALVariant 2: Normally you
  80. d convert and put it in a file right in one script:
  81. Previous Sample
  82. Control: Disable All Functions
  83. A@This script will disable all functions of the Troi File plug-in.Bw
  84. |("TrFile-Control"
  85.  "-disableAllFunctions |" & 
  86. TrFile-Control
  87. -disableAllFunctions |
  88.  = -416
  89. Cancel
  90. Please specify a valid password.
  91. -------------
  92. A    open file
  93. Control: Enable All Functions
  94. A/This will convert the text to FileMaker format.Bu
  95. |("TrFile-Control"
  96.  "-enableAllFunctions |" & 
  97. TrFile-Control
  98. -enableAllFunctions |
  99. Control: Check if Disabled
  100. A,This script will get the contents of a file.B
  101. |("TrFile-ContentsDialog"
  102.  "Please select a text file (with higher ASCII):")
  103. TrFile-ContentsDialog
  104. .Please select a text file (with higher ASCII):|C9
  105.  2) = "$$"
  106.  = -4220
  107. Cancel
  108. This function was not executed, because the functions are disabled! You can enable the functions again with the "Enable all functions" button.
  109.     Helvetica
  110. Geneva
  111. Times New Roman
  112. A4If the File plug-in is disabled an message is shown.Bw
  113. |("TrFile-Control"
  114.  "CurrentEnabledStatus") <> 1
  115. TrFile-Control
  116. CurrentEnabledStatus|
  117. Cancel
  118. This function is not available. Execution of this function is halted.
  119. k{k|w
  120. [=g\gYg\.T
  121. g\c[_]c\ozc\g\[]g\c[o{c[g\[\g\24
  122. OYBw*
  123. _ZkZ[ZkZ_ZkZOZkZ[ZkZ_Zw
  124. k]k]{
  125. g\g=5
  126. 5sF6g]F
  127. o|g]k}
  128.     k]k]s
  129. o|g]{
  130. k]k]w
  131. Nv_:5
  132. g=g<_;w
  133. o\o}5
  134. k=JW1
  135. o\g{1
  136. g=k]5
  137. NvkZ2
  138. s}g]k\
  139. g=g<w
  140. g}k=o
  141. o^k{k}
  142. g]k=k
  143. g}k]o}
  144. Pro 3.0 - 4.0F!
  145. Sunday
  146. Monday
  147. Tuesday
  148.     Wednesday
  149. Thursday
  150. Friday
  151. Saturday
  152. January
  153. February
  154. March
  155. April
  156. August
  157.     September
  158. October
  159. November
  160. December
  161. 1st Quarter
  162. 2nd Quarter
  163. 3rd Quarter
  164. 4th Quarter
  165.